package cn.apthink.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 *
 * </p>
 *
 * @author David唐
 * @since 2024-01-25
 */
@Getter
@Setter
@ToString
@TableName("rolepermission")
@ApiModel(value = "RolepermissionEntity对象", description = "")
public class RolePermissionEntity {

    @ApiModelProperty(value="字段id", name="id")
    @TableId(value="id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value="字段roleid", name="roleid")
    @TableField("roleid")
    private String roleid;

    @ApiModelProperty(value="字段menuid", name="menuid")
    @TableField("menuid")
    private String menuid;

    @ApiModelProperty(value="字段permissionid", name="permissionid")
    @TableField("permissionid")
    private String permissionid;

    @ApiModelProperty(value="字段createtime", name="createtime")
    @TableField(value="createtime" , fill = FieldFill.INSERT)
    private String createtime;
}
